<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>OpenConsole</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">OpenConsole()</font></b></p>
<p><b>语法</b></p><blockquote>

Result = <font color="#006666"><b>OpenConsole</b></font>([Title$])</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Open a console window. This function must be called before any other function 
of this library. Only one console can be opened at the same time in a PureBasic program. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Title$ (optional)</i></td>
<td width="90%"> 
 
The title for the new console window. On Windows, specifying a title allow the saving of 
custom console parameter, like font, color etc. It has no effect on other OS. 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>



If Result is 0, it has failed and all further call to console functions must be disabled. 

 

</blockquote><p><b>Remarks</b></p><blockquote>



The console can be closed using the <a href="closeconsole.html">CloseConsole()</a> function. 
<br>
<br>
With <a href="enablegraphicalconsole.html">EnableGraphicalConsole()</a> the console can be switched 
between text and graphics mode. 
<br>
<br>
On Microsoft Windows, there are two different executable formats: Win32 and Console. If you want to 
create a standard console application, like 'dir', 'del' etc. you must compile the executable using 
the 'Console' format (<a href="../reference/ide_compiler.html">Compiler Option</a> menu in the PureBasic IDE). 
On Linux and OS X, there is no special Console format however setting the Compiler option to 'Console' 
will launch a terminal window automatically when you run your program from the IDE. 

 

</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2"><font color="#006666">  OpenConsole</font>()
<font color="#006666">  PrintN</font>("Waiting 5 secs before quit...")
<font color="#006666">  Delay</font>(5000)
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="closeconsole.html">CloseConsole()</a>, <a href="enablegraphicalconsole.html">EnableGraphicalConsole()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=input.html>Input()</a> - <a href=index.html>Console Index</a> - <a href=print.html>Print()</a> -&gt;



</body></html>